package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import javax.swing.WindowConstants;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class menuV extends javax.swing.JFrame {
	private JPanel jPanelmenu;
	private JLabel lblfondo;
	private JButton btngenerarjuego;
	private JButton btnposiciones;
	private JButton btncalendario;
	private JButton btnregequipo;
	private JButton btnregM;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public menuV() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Beisbol Profesional Venezolano");
			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("imagen/logo_lvbp_nuevo.png")).getImage());
			{
				jPanelmenu = new JPanel();
				getContentPane().add(jPanelmenu, BorderLayout.SOUTH);
				jPanelmenu.setLayout(null);
				jPanelmenu.setPreferredSize(new java.awt.Dimension(463, 389));
				{
					lblfondo = new JLabel();
					jPanelmenu.add(lblfondo);
					lblfondo.setBounds(0, 0, 542, 389);
					lblfondo.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/logo_lvbp_nuevo.png")));
				}
				{
					btnregM = new JButton();
					jPanelmenu.add(btnregM);
					btnregM.setText("Registrar Arbitro");
					btnregM.setBounds(293, 39, 219, 39);
					btnregM.setBackground(new java.awt.Color(0,0,64));
					btnregM.setForeground(new java.awt.Color(255,255,255));
					btnregM.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/baseball_32(3).png")));
				}
				{
					btnregequipo = new JButton();
					jPanelmenu.add(btnregequipo);
					btnregequipo.setText("Registrar Equipo");
					btnregequipo.setBounds(293, 106, 219, 42);
					btnregequipo.setBackground(new java.awt.Color(0,0,64));
					btnregequipo.setForeground(new java.awt.Color(255,255,255));
					btnregequipo.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/Baseball_48.png")));
				}
				{
					btngenerarjuego = new JButton();
					jPanelmenu.add(btngenerarjuego);
					btngenerarjuego.setText("Generar Partidos");
					btngenerarjuego.setBounds(294, 179, 214, 39);
					btngenerarjuego.setBackground(new java.awt.Color(0,0,64));
					btngenerarjuego.setForeground(new java.awt.Color(255,255,255));
					btngenerarjuego.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/generar.JPG")));
				}
				{
					btncalendario = new JButton();
					jPanelmenu.add(btncalendario);
					btncalendario.setText("Calendario");
					btncalendario.setBounds(292, 245, 214, 45);
					btncalendario.setBackground(new java.awt.Color(0,0,64));
					btncalendario.setForeground(new java.awt.Color(255,255,255));
					btncalendario.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/Google-Calendar-32.png")));
				}
				{
					btnposiciones = new JButton();
					jPanelmenu.add(btnposiciones);
					btnposiciones.setText("Tabla de Posiciones");
					btnposiciones.setBounds(291, 323, 215, 44);
					btnposiciones.setBackground(new java.awt.Color(0,0,64));
					btnposiciones.setForeground(new java.awt.Color(255,255,255));
					btnposiciones.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/Trophy_Gold_32.png")));
				}
			}
			pack();
			this.setSize(558, 427);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener actionListener){
		btnregM.addActionListener(actionListener);
		btnregequipo.addActionListener(actionListener);
		btngenerarjuego.addActionListener(actionListener);
		btncalendario.addActionListener(actionListener);
		btnposiciones.addActionListener(actionListener);
		
	}
}
